package com.enjoy.book.dao;

import com.enjoy.book.bean.Record;
import com.enjoy.book.util.DBHelper;
import org.apache.commons.dbutils.handlers.BeanHandler;
import org.apache.commons.dbutils.handlers.BeanListHandler;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

/**
 * @author 赵洋
 */
public interface RecordDao {
    public List<Record> getRecordByBookId(long bookId) throws SQLException ;
    public List<Record> getRecordByMemberId(long memberId) throws SQLException;
    public  int modify(double deposit,long userId,long id) throws SQLException ;

    public int add(long memberId,long bookId,double deposit,long userId) throws SQLException;

    public Record getById(long recordId) throws SQLException ;
}
